package com.duoec.magichour.pojo;

import java.util.Date;

public class Article {
    /**
     * 文章ID
     * @demo 13456
     */
    private Long id;

    /**
     * 标题
     * @demo 好文章！
     */
    private String title;

    /**
     * 封面图
     * @demo http://www.duoec.com/img/23wdfas.jpg
     */
    private String coverImg;

    /**
     * 文章概要
     * @demo 这是一篇好文章，非常非常好的文章，不看后悔
     */
    private String summary;

    /**
     * 创建者ID
     * @demo 1234
     */
    private Long userId;

    /**
     * 分类ID
     * @demo 2
     */
    private Integer cateId;

    /**
     * 评论数量
     * @demo 201
     */
    private Integer commendCount;

    /**
     * 收藏数量
     * @demo 205
     */
    private Integer collectCount;

    /**
     * 关联的商品数量
     * @demo 20
     */
    private Integer productCount;

    /**
     * 关联图片数量
     * @demo 2
     */
    private Integer imgCount;

    /**
     * 阅读数
     * @demo 2023
     */
    private Integer viewCount;

    /**
     * 关联话题数
     * @demo 0
     */
    private Integer topicCount;

    /**
     * at用户数
     * @demo 2
     */
    private Integer atCount;

    /**
     * 分享数
     * @demo 20
     */
    private Integer shareCount;

    /**
     * 创建时间
     * @demo 2017-07-01 12:23:34
     */
    private Date createTime;

    /**
     * 更新时间
     * @demo 2017-07-01 12:23:34
     */
    private Date updateTime;

    /**
     * 文章内容
     * @demo 文章内容...此处省略1万字...
     */
    private String content;

    /**
     * 文章状态：-1已删除 0草稿 1已上线
     * @demo 0
     */
    private Byte articleStatus;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getCoverImg() {
        return coverImg;
    }

    public void setCoverImg(String coverImg) {
        this.coverImg = coverImg == null ? null : coverImg.trim();
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary == null ? null : summary.trim();
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getCommendCount() {
        return commendCount;
    }

    public void setCommendCount(Integer commendCount) {
        this.commendCount = commendCount;
    }

    public Integer getCollectCount() {
        return collectCount;
    }

    public void setCollectCount(Integer collectCount) {
        this.collectCount = collectCount;
    }

    public Integer getProductCount() {
        return productCount;
    }

    public void setProductCount(Integer productCount) {
        this.productCount = productCount;
    }

    public Integer getImgCount() {
        return imgCount;
    }

    public void setImgCount(Integer imgCount) {
        this.imgCount = imgCount;
    }

    public Integer getViewCount() {
        return viewCount;
    }

    public void setViewCount(Integer viewCount) {
        this.viewCount = viewCount;
    }

    public Integer getTopicCount() {
        return topicCount;
    }

    public void setTopicCount(Integer topicCount) {
        this.topicCount = topicCount;
    }

    public Integer getAtCount() {
        return atCount;
    }

    public void setAtCount(Integer atCount) {
        this.atCount = atCount;
    }

    public Integer getShareCount() {
        return shareCount;
    }

    public void setShareCount(Integer shareCount) {
        this.shareCount = shareCount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Byte getArticleStatus() {
        return articleStatus;
    }

    public void setArticleStatus(Byte articleStatus) {
        this.articleStatus = articleStatus;
    }

    public Integer getCateId() {
        return cateId;
    }

    public void setCateId(Integer cateId) {
        this.cateId = cateId;
    }
}